package com.joysuch.wwyt.streampusher.rtspUrlFormatter;


import com.joysuch.wwyt.streampusher.VideoBrandEnum;

/**
 * rtsp历史流url格式化工厂
 * @author zhangmingming
 */
public class RtspHistoryUrlFormatterFactory {

    private static final RtspHistoryUrlFormatter daHuaRtspHistoryUrlFormatter = new DaHuaRtspHistoryUrlFormatter();

    private static final RtspHistoryUrlFormatter HaiKangRtspHistoryUrlFormatter = new HaiKangRtspHistoryUrlFormatter();

    public static RtspHistoryUrlFormatter getFormatter(VideoBrandEnum brandEnum){
        switch (brandEnum){
            case DAHUA:
                return daHuaRtspHistoryUrlFormatter;
            case HAIKANG:
                return HaiKangRtspHistoryUrlFormatter;
            default:
                return HaiKangRtspHistoryUrlFormatter;
        }
    }
}
